<template>
  <div>

  </div>
</template>

<script>
import axios from "axios";
export default {
  name: 'Users',
  data() {
    return {
      tableDate: [
        {
          id:1,
          username:"jjj",
          name:"djaks",
          address:"dakjsjd"
        }
      ] // 初始化一个空数组作为 users 数据源
    };
  },
  mounted() {
    axios.get('http://localhost:4399/user/selectAll')
        .then((response) => {
          if (response.status === 200 && response.data.data !== null) {
            console.log(response.data.data)
            // this.users = response.data.data;
          } else {
            console.error(`Failed to load user data, status ${response.status}`);
          }
        });
  },
};
</script>


<style scoped>

</style>